﻿<Window x:Class="Lights.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ctrl="clr-namespace:Lights.Page"
        xmlns:local="clr-namespace:Lights.Controls"
        Loaded="Window_Loaded"
        Title="MainWindow" Height="480" Width="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="250"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="25"/>
        </Grid.RowDefinitions>
        <StackPanel Name="infoPanel" Grid.Column="1" HorizontalAlignment="Right" Orientation="Horizontal" Visibility="Hidden" Panel.ZIndex="1" >
            <Label Name="lblWork"/>
            <Label Content=" in corso:"/>
            <ProgressBar Name="prgBar" Width="100" Height="15"/>
            <Button Content="X" Width="25" Margin="6,0,0,0" FontWeight="Bold" Foreground="Red" Click="Button_Click" />
        </StackPanel>
        <TabControl Name="tbControl" Grid.Row="0" Grid.ColumnSpan="2" Tag="24" >
            <TabItem Header="Libreria" FontSize="{Binding ElementName=tbControl,Path=Tag}">
                <ctrl:LibraryPage x:Name="library" FontSize="12"/>
            </TabItem>
            <TabItem Header="Sviluppo" FontSize="{Binding ElementName=tbControl,Path=Tag}">
                <ctrl:EditingPage x:Name="editingPage" FontSize="12" />
            </TabItem>
        </TabControl>
        <local:SelectionControl x:Name="selection" Grid.Row="1" Grid.ColumnSpan="2" ItemsSource="{Binding ElementName=library,Path=SelectedItems}" SelectedPhotoChanged="selection_SelectionChanged" />
        <StatusBar Grid.ColumnSpan="2" Grid.Row="2">
            <TextBlock Name="txtInfo"/>
        </StatusBar>
    </Grid>
</Window>
